				<div class="slider_wp">
                	<div id="rg-gallery" class="rg-gallery">
					<div class="rg-thumbs">
						<!-- Elastislide Carousel Thumbnail Viewer -->
						<div class="es-carousel-wrapper">
							<div class="es-nav">
								<span class="es-nav-prev">Previous</span>
								<span class="es-nav-next">Next</span>
                                <div id="buttons">
                                <div class="playbutton"><a href="javascript:doTimer();"><img src="<?php echo base_url(ASSETPATH.'images/play.png')?>" width="24" height="24" alt="Play"></a></div>
                                <div class="pausebutton"><a href="javascript:stopCount();"><img src="<?php echo base_url(ASSETPATH.'images/pause.png')?>" width="24" height="24" alt="Pause"></a></div>
                                </div>
							</div>
							<div class="es-carousel">
								<ul>
                                	<?php foreach($banners as $banner):?>
                                    	<li>
                                    	<?php 
                                    	$box_image	= '<img class="responsiveImage" src="'.base_url('uploads/'.$banner->image).'" data-large="'.base_url('uploads/'.$banner->image).'"/>';
                                        if($banner->link != '')
                                        {
                                            $target	= false;
                                            if($banner->new_window)
                                            {
                                                $target = 'data-target="_blank"';
                                            }
                                            //echo '<a href="'.$banner->link.'" '.$target.' >'.$box_image.'</a>';
											echo '<img data-link="'.$banner->link.'" '.$target.' class="responsiveImage" src="'.base_url('uploads/'.$banner->image).'" data-large="'.base_url('uploads/'.$banner->image).'"/>';
                                        }
                                        else
                                        {
                                            echo $box_image;
                                        }
										?>
                                        </li>
									
                                    <?php endforeach;?>
								</ul>
							</div>
						</div>
						<!-- End Elastislide Carousel Thumbnail Viewer -->
					</div><!-- rg-thumbs -->
					</div>
                </div>